<?php
/**
 * RAI验证定义接口
 *
 * @version $Id: RaiValidator.php 312 2008-04-23 16:29:38Z iwind $
 * @package net.4kiki.rai.server.validator
 * @since 0.0.3
 */
interface RaiValidator {
	/**
	 * 验证
	 *
	 * @return boolean
	 */
	public function validate();
	
	/**
	 * 取得错误
	 *
	 * @return RaiFault
	 */
	public function getFault();
	
	/**
	 * 设置请求
	 *
	 * @param RaiRequest $request 请求
	 */
	public function setRequest(RaiRequest $request);
}

?>